function sendRequest() {
  // Content-Type: application/json
  $.post({
    url: 'http://127.0.0.1/api/post/json',
    contentType: 'application/json',
    data: JSON.stringify({
      name: '张智琦',
      age: 18
    })
  })
    .done(res => {
      console.log(res)
    })
    .catch(err => {
      console.log(err)
    })
}
